﻿pages_help = {
    showpopup: function () {
        Loading.showProcess();
        $.ajax({
            type: "GET",
            url: "/Handler/AccountHandler.ashx",
            data: { t: "GetHelp", type:2 },
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            cache: false,
            success: function (data) {
                Loading.closeProcess();
                var sHtml = '<div id="divHelpFAQ">';

                for (var i = 0; i < data.length; i++) {
                    sHtml += '<div class="help_item">'
                    + '<div class="help_title">&raquo; ' + data[i].Title + '</div>'
                    + '<div class="help_content">' + data[i].Content + '</div>'
                    + '</div>';
                }
                sHtml += '</div>';
                sAlert("Trợ giúp", sHtml,600);
                $('.help_title', '#divHelpFAQ').click(function () {                    
                    $('.help_content', $(this).parent()).toggle(200);
                });
            }
        });

    }
}